<?php
/**
 * GioCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@ninhgio.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2010 GioCMS (http://www.ninhgio.com)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 */
?>
<?php if (isset($this->categories) && $this->categories) : ?>
<div class="ninhgio mb5">
	<div class="news-breakcump">
		<div class="fl">
			<?php foreach ($this->categories as $index => $category) : ?>
			<?php if ($index > 0) : ?>&nbsp;/&nbsp;<?php endif; ?>
			<a<?php if ($index > 0) : ?> class="sub"<?php endif; ?> href="<?php echo $this->url('news_article_category', $category); ?>" title="<?php echo $this->STRING->escape($category['name']); ?>"><?php echo $category['name']; ?></a>
			<?php endforeach; ?>
		</div>
		<div class="fr date" id="dateTimeContainer"></div>
		<div class="clear"></div>
	</div>
</div>
<script type="text/javascript">
function viewDate(string) {
	$('#dateTimeContainer').html(string);
}
$(document).ready(function() {
	var dateString = 'Cập nhật <?php echo date('d/m/Y H:i A'); ?> (GMT+7)';
	viewDate(dateString);
});
</script>
<?php endif; ?>